﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;

using FreeSql.DatabaseModel;
using FreeSql.DataAnnotations;

namespace ConfigInfoWebPlatform.Model
{

	[JsonObject(MemberSerialization.OptIn), Table(DisableSyncStructure = true)]
	public partial class PackagRecord
	{

		[JsonProperty, Column(DbType = "VARCHAR(64)", IsPrimary = true, IsNullable = false)]
		public string Id { get; set; }

		/// <summary>
		/// 备注
		/// </summary>
		[JsonProperty, Column(DbType = "VARCHAR(1000)")]
		public string Remark { get; set; }

		/// <summary>
		/// 打包状态
		/// 1.正在打包 2.打包完成 3.打包异常
		/// </summary>
		[JsonProperty, Column(DbType = "INT")]
		public int? PackagStatus { get; set; }

		/// <summary>
		/// 文件路径
		/// </summary>
		[JsonProperty, Column(DbType = "VARCHAR(300)")]
		public string FilePath { get; set; }

		[JsonProperty, Column(DbType = "VARCHAR(50)")]
		public string FileName { get; set; }

		/// <summary>
		/// 文件状态
		/// 1.正常 2.已删除
		/// </summary>
		[JsonProperty, Column(DbType = "INT")]
		public int? FileStatus { get; set; } 

		/// <summary>
		/// 打包人
		/// </summary>
		[JsonProperty, Column(DbType = "VARCHAR(100)")]
		public string UserName { get; set; }

		/// <summary>
		/// 打包时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

	}

}